package org.example;

public class DiscardRejectHandler implements RejectHandler{
    @Override
    public void reject(Runnable rejectCommand, MyThreadPool pool) {
        //移除队头的元素
        pool.blockingDeque.poll();
        pool.execute(rejectCommand);
    }
}
